﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Caviar.SharedKernel.Entities.IM
{
    public class Group : SysUseEntity
    {
        /// <summary>
        /// 群主
        /// </summary>
        public User User { get; set; }

        /// <summary>
        /// 群主ID
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [Required(ErrorMessage = "RequiredErrorMsg")]
        [StringLength(36, ErrorMessage = "LengthErrorMsg")]
        public string Name { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        public string Avatar { get; set; }

        /// <summary>
        /// 简介
        /// </summary>
        [StringLength(144, ErrorMessage = "LengthErrorMsg")]
        public string Profile { get; set; }
    }
}
